package com.gutai.admin.common.entity.dto;

import org.apache.commons.lang3.RandomUtils;

/**
 * 
 * 下拉列表显示的数据实体
 * 
 * <pre>
 * HISTORY
 * ****************************************************************************
 *  ID    DATE            PERSON            REASON
 *  1     2019年1月29日         la.01367604           Create
 * ****************************************************************************
 * </pre>
 * 
 * @author la.01367604
 * @version 1.0
 */
public class SelectListDto {

    private Integer id; // 下拉框绑定value，默认为数字

    private String value;

    private String name;

    public SelectListDto() {
        super();
    }

    public SelectListDto(Integer id, String name) {
        super();
        this.id = id;
        this.name = name;
    }

    public SelectListDto(String value, String name) {
        super();
        this.id = RandomUtils.nextInt();
        this.value = value;
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
